import { Component, OnInit } from '@angular/core';
import {BMapService} from '../shared/service/bmap.service';

@Component({
  selector: 'app-main',
  templateUrl: './main.component.html',
  styleUrls: ['./main.component.scss']
})
export class MainComponent implements OnInit {

  constructor(
    private bMapService: BMapService
  ) { }

  ngOnInit() {
    this.initMap();
  }

  // 地图初始化
  initMap() {
    this.bMapService.initMap('map');
  }

}
